﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace EQual.MainModule
{
    public class EmployeesProvider
    {
        public IEnumerable GetEmployees()
        {
            return new DataAccesLayer.EQualDataLayerFactory ().GetEmployeeAccesLayer ().GetEmployees();
        }

        public IEnumerable GetTrainingStatus()
        {
           yield return "s0";
           yield return "s1";
        }

        public IEnumerable GetProposalTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetEmployeeAccesLayer().GetProposalTypes();
        }

        public IEnumerable GetProposalStatusTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetEmployeeAccesLayer().GetProposalsStatusTypes();
        }

    }

    public class DocumentsProvider
    {
        public IEnumerable GetFormsAndRecords()
        {
            return new DataAccesLayer.EQualDataLayerFactory ().GetDocumentAccesLayer ().GetFormsAndRecords();
        }

        public IEnumerable GetDocuments()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetDocumentAccesLayer().GetDocuments();
        }

        public IEnumerable GetDocumentTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetDocumentAccesLayer().GetDocumentTypes ();
        }
    }

    public class ProjectsProvider
    {
        public IEnumerable GetProjects()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetProjectsAccesLayer().GetProjects();
        }
        public IEnumerable GetProjectsTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetProjectsAccesLayer ().GetProjectTypes();
        }

        public IEnumerable GetProjectsStatusTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetProjectsAccesLayer().GetProjectsStatusTypes();
        }

         public IEnumerable GetQualityEventsTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetProjectsAccesLayer().GetQualityEventsTypes();
        }
    }
    public class ReviewsProvider
    {
        public IEnumerable GetReviews()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetReviewsAccesLayer().GetReviews();
        }
        public IEnumerable GetReviewTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetReviewsAccesLayer ().GetReviewTypes();
        }

        public IEnumerable GetProjectsStatusTypes()
        {
            return new DataAccesLayer.EQualDataLayerFactory().GetProjectsAccesLayer().GetProjectsStatusTypes();
        }
    }


}
